/*
 * @Description: 设置管理API接口
 * @Author: QianLong
 * @Date: 2019-07-07 19:06:52
 * @LastEditors    : QianLong
 * @LastEditTime   : 2023-04-12 16:13:15
 */
import http from '@/utils/http/axios'

export function getItemList(params) {
  return http.request({
    url: '/logs/list',
    method: 'GET',
    params
  })
}
export function getSiteList(params) {
  return http.request({
    url: '/logs/site_list',
    method: 'GET',
    params
  })
}
export function doGetTjData(params) {
  return http.request({
    url: '/logs/line_data',
    method: 'GET',
    params
  })
}
export function getAllSiteList(params) {
  return http.request({
    url: '/logs/all_site_list',
    method: 'GET',
    params
  })
}
export function delSiteItem(params) {
  return http.request(
    {
      url: '/logs/del_site',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function delLogItem(params) {
  return http.request(
    {
      url: '/logs/del_log',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function delLogAll(params) {
  return http.request(
    {
      url: '/logs/del_log_all',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function delLogBatch(params) {
  return http.request(
    {
      url: '/logs/del_log_batch',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function delSiteBatch(params) {
  return http.request(
    {
      url: '/logs/del_site_batch',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function editSiteInfo(params) {
  return http.request(
    {
      url: '/logs/editSiteInfo',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function getItemInfo(params) {
  return http.request({
    url: '/logs/editItemInfo',
    method: 'GET',
    params
  })
}
